package com.azt.provider.mapper;

import com.azt.api.pojo.UserFunction;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface UserFunctionMapper extends Mapper<UserFunction> {

	UserFunction getFuncById(Integer id);

	List<UserFunction> getAllUserFunctionTree();

	UserFunction getFuncByParameterMap(@Param("parameterMap")Map<String, Object> parameterMap);

	List<UserFunction> findFuncByRoleId(@Param("roleId") int roleId, @Param("type") Integer type, @Param("showType") Integer showType);

	List<UserFunction> findRegisterFunc(@Param("type")int type, @Param("showType")int showType);

	List<UserFunction> findFunc(@Param("type")int type, @Param("showType")int showType);

	UserFunction getParFunByCode(String menucode);

	List<UserFunction> loadChildMenuTree(Integer parentId);

}